fingerprint5 2.2.0
Loading...
Searching...
No Matches
main.c File Reference

Fingerprint 5 Click Example. More...

#include "board.h"
#include "log.h"
#include "fingerprint5.h"

Macros

#define NUMBER_OF_FINGERPRINTS   2

Enumerations

enum  fingerprint5_app_state_t {
  FINGERPRINT5_APP_STATE_WAIT_READY = 0 , FINGERPRINT5_APP_STATE_VERSION , FINGERPRINT5_APP_STATE_DELETE_TEMPLATES , FINGERPRINT5_APP_STATE_ENROLL ,
  FINGERPRINT5_APP_STATE_IDENTIFY
}
 Example states. More...

Functions

void application_init (void)
void application_task (void)
int main (void)

Detailed Description

Fingerprint 5 Click Example.

Description

This example demonstrates how to use the Fingerprint 5 Click board to enroll and identify fingerprints. The application cycles through several states: checking firmware readiness, reading version info, deleting existing templates, enrolling new fingerprints, and continuously identifying them.

The demo application is composed of two sections :

Application Init

Initializes the logger and the Click board, resets the device and sets up the application state machine.

Application Task

Handles command processing and application state transitions, enabling fingerprint enrollment and identification.

Note
Make sure to place your finger on the sensor when prompted during enrollment and identification. The example registers 2 fingerprints by default.
Author
Stefan Filipovic

Macro Definition Documentation

◆ NUMBER_OF_FINGERPRINTS

#define NUMBER_OF_FINGERPRINTS   2

Enumeration Type Documentation

◆ fingerprint5_app_state_t

Example states.

Predefined enum values for application example state.

Enumerator
FINGERPRINT5_APP_STATE_WAIT_READY 
FINGERPRINT5_APP_STATE_VERSION 
FINGERPRINT5_APP_STATE_DELETE_TEMPLATES 
FINGERPRINT5_APP_STATE_ENROLL 
FINGERPRINT5_APP_STATE_IDENTIFY 

Function Documentation

◆ application_init()

void application_init ( void )

< Logger config object.

< Click config object.

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void )

◆ main()

int main ( void )